package io.wdb.modules.generator.generator.dao;

import io.wdb.common.utils.Query;
import io.wdb.modules.generator.generator.entity.BookEntityEntity;
import io.wdb.modules.generator.generator.entity.customer.BookEntityCustomer;
import io.wdb.modules.generator.generator.entity.statistics.BookCheckOneRes;
import io.wdb.modules.generator.generator.entity.statistics.BorrowStatistics;
import io.wdb.modules.generator.generator.entity.web.DaysQueryRequest;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import io.wdb.modules.manager.sys.dao.BaseDao;


/**
 * 图书实体表
 * 
 * @author wdb
 * @email admin@wdb007.com
 * @date 2017-11-30 15:15:37
 */
@Mapper
public interface BookEntityDao extends BaseDao<BookEntityEntity> {

	/*List<BookEntityCustomer> queryListBorrow(Query query);*/

	int queryTotalBorrow(Query query);

	BookEntityCustomer getInfoByIsbn(String isbn);

	Integer queryCurrentBookCount(String code);

	Integer queryOriginalBookCount(String code);

	Integer queryBorrowedBookCount(String code);

	List<BookEntityCustomer> queryBooksByGridCode(String currentGridCode);

	BorrowStatistics inGridBooks(DaysQueryRequest daysQueryRequest);

	List<BookEntityCustomer> getBookInfosByRfids(List<String> list);

}
